import 'package:flutter/src/painting/text_span.dart';
import 'package:myturngame/bean/function/abstract_function.dart';
import 'package:myturngame/bean/function/suit_function.dart';

import '../../Theme.dart';

///割裂效果
class Special001EquipFunction extends SuitFunction {
  int value;

  Special001EquipFunction(this.value);

  @override
  List<TextSpan> description() {
    var style = textStyleFunctionSuitNotInvoke;
    if (isInvoke) {
      style = textStyleFunctionSuit;
    }

    return [TextSpan(text: "每次攻击会割裂敌人 所受伤害+$value", style: style)];
  }
}
